Skip to content

ReactiveList.Add(T) method

Defined in

Type: ReactiveList Namespace: ReactiveList.Reactive.Collections Assembly: ReactiveList.Reactive.dll

Applies to

net11.0, net10.0, net47, net471, net472, net48, net481

Overloads

  1. public void Add(T item)

  2. public int Add(object? value)

1. Overload

public void Add(T item)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from ICollection<T>. The member doesn't override them on this type.

Summary: Adds an item to the ICollection (opens in a new tab).

Parameters

NameTypeDescription
itemTThe object to add to the ICollection (opens in a new tab).

Exceptions

TypeCondition
System.NotSupportedException (opens in a new tab)The ICollection (opens in a new tab) is read-only.

2. Overload

public int Add(object? value)

View source (opens in a new tab)

Inherited documentation

These docs were inherited from IList. The member doesn't override them on this type.

Summary: Adds an item to the IList (opens in a new tab).

Parameters

NameTypeDescription
valueobject? (opens in a new tab)The object to add to the IList (opens in a new tab).

Returns: int (opens in a new tab) -- The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the collection.

Exceptions

TypeCondition
System.NotSupportedException (opens in a new tab)The IList (opens in a new tab) is read-only. -or- The IList (opens in a new tab) has a fixed size.